package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EmWarningUserMapper;
import com.ruoyi.system.domain.EmWarningUser;
import com.ruoyi.system.service.IEmWarningUserService;

/**
 * 预警人员中间Service业务层处理
 * 
 * @author yangcan
 * @date 2023-03-07
 */
@Service
public class EmWarningUserServiceImpl implements IEmWarningUserService 
{
    @Autowired
    private EmWarningUserMapper emWarningUserMapper;

    /**
     * 查询预警人员中间
     * 
     * @param id 预警人员中间主键
     * @return 预警人员中间
     */
    @Override
    public EmWarningUser selectEmWarningUserById(Long id)
    {
        return emWarningUserMapper.selectEmWarningUserById(id);
    }

    /**
     * 查询预警人员中间列表
     * 
     * @param emWarningUser 预警人员中间
     * @return 预警人员中间
     */
    @Override
    public List<EmWarningUser> selectEmWarningUserList(EmWarningUser emWarningUser)
    {
        return emWarningUserMapper.selectEmWarningUserList(emWarningUser);
    }

    /**
     * 新增预警人员中间
     * 
     * @param emWarningUser 预警人员中间
     * @return 结果
     */
    @Override
    public int insertEmWarningUser(EmWarningUser emWarningUser)
    {
        return emWarningUserMapper.insertEmWarningUser(emWarningUser);
    }

    /**
     * 修改预警人员中间
     * 
     * @param emWarningUser 预警人员中间
     * @return 结果
     */
    @Override
    public int updateEmWarningUser(EmWarningUser emWarningUser)
    {
        return emWarningUserMapper.updateEmWarningUser(emWarningUser);
    }

    /**
     * 批量删除预警人员中间
     * 
     * @param ids 需要删除的预警人员中间主键
     * @return 结果
     */
    @Override
    public int deleteEmWarningUserByIds(Long[] ids)
    {
        return emWarningUserMapper.deleteEmWarningUserByIds(ids);
    }

    /**
     * 删除预警人员中间信息
     * 
     * @param id 预警人员中间主键
     * @return 结果
     */
    @Override
    public int deleteEmWarningUserById(Long id)
    {
        return emWarningUserMapper.deleteEmWarningUserById(id);
    }
}
